package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreStockCheckBillEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


/**
 * 库存盘点单 更新对象
 *
 * @author fs 2021-03-09
 */
@Data
@ApiModel("库存盘点单-更新对象")
public class StoreStockCheckBillUpdateDTO extends StoreStockCheckBillSaveDTO{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "流水ID")
    private Integer id;
    @ApiModelProperty(value = "明细")
    private List<StoreStockCheckBillDetailUpdateDTO> details;















    public StoreStockCheckBillEntity convertEntity() {
        StoreStockCheckBillEntity target = new StoreStockCheckBillEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
